import { RouteRecordRaw } from 'vue-router';
import RouterTransition from '@/components/routerTransition.vue';
import { markRaw } from 'vue';

const routes: Array<RouteRecordRaw> = [
    {
        path: '/redirect/:path*',
        name: 'Redirect',
        component: markRaw(RouterTransition),
        meta: {
            title: 'redirect',
            icon: 'SettingOutlined',
            hidden: true,
        },
        children: [
            {
                path: '',
                name: 'Redirect',
                component: () => import('@/views/redirect.vue'),
                meta: {
                    title: 'redirect',
                    hidden: true,
                    keepAlive: false,
                },
            },
        ],
    },
];

export default routes;
